// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import Home from '@/pages/home/home'
import G from "@/js/_x/g.js"
import {getBaseinfo} from "./js/_x/g.js"
import {setConfig} from "@/js/_x/utils/request.js"
import store from "./store/index"

import router from './router'
// 引入element-ui组件
import '@/common/loader-element-ui.js'
// reset
import '@/assets/styles/reset.css'
// 图标库
import "@/assets/icon/iconfont.css";

Vue.config.productionTip = false
/* //获取基本信息 */
getBaseinfo();

/* //设置axios的地址 */
setConfig(G.dataServices);
/* 生成环境禁用console.log */
if (process.env.NODE_ENV === "production") {
    console.log = () => {}
}
/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    components: {
        App,
        Home
    },
    template: '<App/>'
})
